﻿<phone:PhoneApplicationPage
    x:Class="wp8nop.Login"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    toolkit:TiltEffect.IsTiltEnabled="True"
    shell:SystemTray.IsVisible="True">
    <phone:PhoneApplicationPage.Resources>
    </phone:PhoneApplicationPage.Resources>
    <phone:PhoneApplicationPage.Foreground>
        <SolidColorBrush Color="White"/>
    </phone:PhoneApplicationPage.Foreground>

    <!--LayoutRoot è la griglia radice in cui viene inserito tutto il contenuto della pagina-->
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contiene il nome dell'applicazione e il titolo della pagina-->
        <Grid Height="55" VerticalAlignment="Top" Background="{StaticResource BrushViola}"/>

        <!--TitlePanel contiene il nome dell'applicazione e il titolo della pagina-->
        <StackPanel Grid.Row="0" Margin="12,17,0,28">
            <TextBlock Text="24CARATI.COM" Style="{StaticResource PhoneTextNormalStyle}" Foreground="Black"/>
            <TextBlock Text="login" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}" Foreground="Black"/>
        </StackPanel>
        <ProgressBar
            VerticalAlignment="Bottom"
            Background="{x:Null}"
            Margin="0,0,0,0"
            Foreground="Red"
            Name="progress"
            IsIndeterminate="{Binding IsLoading}"/>
        <StackPanel x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <TextBlock TextWrapping="Wrap" Text="Sei già registrato ai nostri servizi? Allora accedi" Foreground="{StaticResource BrushViolaScuro}" FontSize="24" Height="70"/>
            <TextBlock Text="email" Foreground="Black" Margin="0,15,0,0" FontSize="24"/>
            <TextBox x:Name="tbemail" HorizontalAlignment="Left" Height="72" Text="" VerticalAlignment="Top" Width="456" BorderBrush="#BF666666" InputScope="EmailUserName"/>
            <TextBlock Text="password" Foreground="Black" Margin="0,15,0,0" FontSize="24"/>
            <PasswordBox x:Name="tbpassword" HorizontalAlignment="Left" Height="72" Password="" VerticalAlignment="Top" Width="456" BorderBrush="#BF666666"/>
            <Button HorizontalAlignment="Center" Padding="0" Style="{StaticResource ButtonStyle1}" Click="Accedi_Click" >
                <Grid Height="57" Width="250">
                    <Image Source="/Assets/Button.png"/>
                    <TextBlock Text="ACCEDI" Foreground="{StaticResource BrushViola}" HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="AvantGarde Normal" FontSize="36"></TextBlock>
                </Grid>
            </Button>
            <TextBlock TextWrapping="Wrap" Text="Non sei registrato?" Foreground="{StaticResource BrushViolaScuro}" FontSize="24" Margin="0,15,0,0"/>
            <Button Margin="0,10,0,0" HorizontalAlignment="Center" Padding="0" Style="{StaticResource ButtonStyle1}" Click="Registrati_Click" >
                <Grid Height="57" Width="250">
                    <Image Source="/Assets/Button.png"/>
                    <TextBlock Text="REGISTRATI" Foreground="{StaticResource BrushViola}" HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="AvantGarde Normal" FontSize="36"></TextBlock>
                </Grid>
            </Button>
        </StackPanel>

        <!--ContentPanel - inserire ulteriore contenuto qui-->
    </Grid>

</phone:PhoneApplicationPage>